//
//  IndependentDeclareTableViewCell.m
//  CloudMD
//
//  Created by centling on 16/3/16.
//  Copyright © 2016年 HuaZhengInfo. All rights reserved.
//

#import "IndependentDeclareTableViewCell.h"
#import "SelfDeclarationListModel.h"

@implementation IndependentDeclareTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(SelfDeclarationListModel *)model {
    _model = model;
    self.titleLabel.text = model.REMARK;
    self.cateLabel.text = [NSString stringWithFormat:@"%@  %@", model.BUSINESSNAME, model.TYPENAME];
    self.stateLabel.text = [NSString stringWithFormat:@"(%@)", model.STATUS];
    if ([model.STATUS isEqualToString:@"正在审核"]) {
        self.stateView.backgroundColor = [UIColor redColor];
    } else {
        self.stateView.backgroundColor = [UIColor greenColor];
    }
}

@end
